package com.yjf.ljr.common;

import android.R.integer;
import android.os.Environment;

public class CommonData {
	/**
	 * https://www.cqmhxy.net/ 5.1可用 http://www.cqmhxy.net:8081 当前可用
	 ***/
	public static final boolean DEBUG = false;
	public static final boolean ISRELEASE_URL = true;

	public static final String SEVER_HOST = ISRELEASE_URL ? "http://www.cqmhxy.net/app/"
			: "http://192.168.45.195:29000/app/";// 服务端地址
	public static final String UPDATE_SEVER_HOST = ISRELEASE_URL ? "http://218.206.4.62:8062/"
			: "http://183.230.11.64:6022/feinnoversion/";// 版本更新地址

	public static final String LOGIN_URL = ISRELEASE_URL ? "http://www.yiji.com/anon/oauth/e8/index.htm?redirect=http://www.cqmhxy.net/openApi/yjfLogin.htm&registerUrl=http://www.cqmhxy.net/anon/investorsOpen&platformName=yfjr"
			: "http://ppm.yijifu.net/anon/oauth/e8/index.htm?redirect=http://192.168.45.212:28170/openApi/yjfLogin.htm&registerUrl=http://192.168.45.212:28170/anon/investorsOpen&platformName=yfjr";// 登录的地址
	public static final String LOGIN_GOTO_URL = ISRELEASE_URL ? "http://www.cqmhxy.net/"
			: "http://192.168.45.195:29000/";// 登录跳转的地址
	public static final String REGISTER_GOTO_URL = ISRELEASE_URL ? "http://www.yiji.com/anon/app/register/paymentActivation.htm?redirect=http://www.cqmhxy.net/openApi/yjfLogin.htm&platformName=yfjr"
			: "http://ppm.yijifu.net/anon/app/register/paymentActivation.htm?redirect=http://192.168.45.212:28170/openApi/yjfLogin.htm";// 注册地址
	public static final String URL = SEVER_HOST;
	public static String USERID = ""; // 用户id
	public static String SESSIONID = ""; // 会话id
	public static String MD5KEY = "md5key";

	public static final String RESULT_SUCCESS = "1"; // 请求成功
	public static final String RESULT_FALD = "0";// 请求失败
	public static final int SUCCESS = 0x1501;
	public static final String NETWORK_ERROR = "网络异常，请稍后重试";

	public static final int NONE = 0x1600;
	public static final int PHOTOHRAPH = 0x1601;// 拍照
	public static final int PHOTOZOOM = 0x1602; // 缩放
	public static final int PHOTORESOULT1 = 0x1603;// 结果
	public static final int PHOTORESOULT2 = 0x1604;// 结果
	public static final int PHOTORESOULT3 = 0x1605;// 结果
	public static final String IMAGE_UNSPECIFIED = "image/*";

	/** SD卡文件存储路径 **/
	public static final String PACKAGE_NAME = "com.yjf.ljr";
	public static final String BASE_DIR_SD = Environment.getExternalStorageDirectory().getPath() + "/Android/data/"
			+ PACKAGE_NAME;
	public static final String DOWNLOAD_DIR_SD = BASE_DIR_SD + "/download";
	public static final String IMAMGE_DIR_SD = BASE_DIR_SD + "/image";
	public static final String AUDIO_DIR_SD = BASE_DIR_SD + "/audio";
	public static final String AVATAR_DIR_SD = BASE_DIR_SD + "/avatar";// 头像
	public static final String LOGGER_DIR_SD = BASE_DIR_SD + "/log";
	/** 内存文件存储路径 **/
	public static final String BASE_DIR_RAM = "/data/data/" + CommonData.PACKAGE_NAME;
	public static final String IMAMGE_DIR_RAM = BASE_DIR_RAM + "/image";

	public static final int REQUEST_CODE_LOGIN = 1000; // 跳转登录
	public static final int REQUEST_CODE_PROJECT = 1001;
	public static final int CONFIRMATION_TRANSFER = 1002;// 跳转确认转让
	public static boolean FLAG_LOGIN_SERVER = false; // 是否登录
	public static String USER_NAME = "";
	public static boolean IS_LOGIN = false;
	public static boolean IS_INVEST_COMPLETE = false;
    public static final String AESKEY = /*"0123456789abcdef"*/"lvjurenp2ppublic";//SYS_PARAM_APP_PWD_KEY

}